/**
 * Created by Administrator on 2017/10/17.
 */
$(function(){
    $('#pagescroll').fullpage({
        navigation: true,
        afterLoad: function(anchorLink, index){
            if(index == 2){
                console.log(index);
            }
            if(index == 3){
                console.log(index);
            }
        },
        onLeave: function(index, direction){
            if(index == '2'){
                console.log(index);
            }
            if(index == '3'){
                console.log(index);
            }
        }
    });
});